package pc;

import java.io.*;
import java.util.Scanner;

public class demo3 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("D:/cba.txt"));
        String[] s = br.readLine().split("&");
        br.close();
        String username = s[0].split("=")[1];
        String password = s[1].split("=")[1];
        System.out.println(username);
        System.out.println(password);
        Scanner sc = new Scanner(System.in);
        String name = sc.next();
        String word = sc.next();

        if(name.equals(username)&&word.equals(password)){
            System.out.println("haha");
        }   else{
            System.out.println("sorry");
        }

    }
}
